import { Component, OnInit, Injector } from '@angular/core';

import { DetailBase } from 'app/modules/base/detail-base';
import { AdminService, AdminModel, AutoNodeConst } from '../services/admin.service';
import { LoginService } from 'app/modules/login/services/login.service';

@Component({
	selector: 'm-list',
	templateUrl: './list.component.html',
	styleUrls: ['./list.component.scss'],
})
export class ListComponent extends DetailBase implements OnInit {
	constructor(private injector: Injector, private adminService: AdminService, private loginService: LoginService) {
		super(injector);
	}
	AutoNodeConst = AutoNodeConst;
	data$ = this.getData<AdminModel>('data');
	user$ = this.loginService.User$;
	ngOnInit() {}
}
